<?php
/**
 * Created by JetBrains PhpStorm.
 * User: thanhdx
 * Date: 4/12/12
 * Time: 3:09 PM
 * To change this template use File | Settings | File Templates.
 */
class UploadImageForm extends CFormModel
{
     public $file;
    public function rules(){
        return array(
            array('file', 'file', 'types'=>'png,jpg,jpge,gif'),
        );
    }
}
